package stock_service;

import java.sql.SQLException;
import java.util.List;

import stock_dao.ItemDao;
import stock_vo.ItemVO;

public class ItemServiceImpl implements ItemService{
	private ItemDao itemDao;
	public ItemServiceImpl(ItemDao itemDao) {
		super();
		this.itemDao = itemDao;
	}
	@Override
	public void insertItem(ItemVO vo) throws SQLException {
		itemDao.insertItem(vo);
	}
	@Override
	public List selectItem() throws SQLException {
		return itemDao.selectItem();
	}
	@Override
	public void deleteItem(String item_code) throws SQLException {
		itemDao.deleteItem(item_code);
	}
}
